import TopNav from "@/components/TopNav/index.vue"
import ConfirmOrder from "@c/order/confirmOrder/index.vue"
import PaymentMethod from "@c/order/paymentMethod/index.vue"
import PaySuccess from "@c/order/paySuccess/index.vue"

export default {
    components: {
        TopNav,
        ConfirmOrder,
        PaymentMethod,
        PaySuccess
    },
    data() {
        return {
            currentStep: 1,
            orderNumber: '',

        }

    },
    created() {
        //下标
        let currentStep = this.$route.query.currentStep
        if (currentStep) {
            this.currentStep = parseInt(currentStep)
        }
    },
    methods: {
        handleStep() {
            ++this.currentStep
        },

        handleOrderId(id) {
            this.orderNumber = id
        },
    }
}
